'use strict';

stareal
    .controller("DuiShopController", function ($scope,$interval,$document, $stateParams, $api, $sce, base64, $state, $alert,localStorageService,$timeout) {
        // var height=(document.body.clientHeight-parseInt(document.documentElement.style.fontSize)*1.3)+'px';
        $scope.venus360Id=$stateParams.id;
        var height=$(window).height()+'px';
        var wid=$(window).width()+'px';
        $api.get("app/duiba/index",{shop:1},true)
            .then(function (ret) {
                var data=ret.data;
                console.log(data);
                var link=data.url;
                console.log(link);
                // window.location.href=link;
                $("#venusGaocontainer").html('<iframe src="'+link+'" frameborder="0"  id="venusGaoconIframe" width="'+wid+'" height="'+height+'" ></iframe>');
                //window.open('https://activity.m.duiba.com.cn/chome/index?from=login&spm=53694.1.1.1','_blank');
            })
        //    接受https://m.amap.com/navi/?dest=119.284567%2C26.019484&destName=%E7%A6%8F%E5%B7%9E%E6%B5%B7%E5%B3%A1%E5%A5%A5%E6%9E%97%E5%8C%B9%E5%85%8B%E4%BD%93%E8%82%B2%E4%B8%AD%E5%BF%83%E7%BB%BC%E5%90%88%E9%A6%86&key=59ca8a781dba9f928faceafddbb2bf52


    })